-- GENERATED SPELL FOR [Plague Drenched Ghoul] --


function spell0_32176(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(50106,pUnit)
pUnit:RegisterEvent('Sorts_32176', 0, 1)
end

function spell1_32176(pUnit, Event) --@Plague Bite,n/a--
pUnit:FullCastSpellOnTarget(60678,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32176', 8000, 1)
end

function Sorts_32176(pUnit, Event)
local choix_sorts_32176 = math.random(0, 1)
if choix_sorts_32176 == 0 then
pUnit:RegisterEvent('spell0_32176', 1, 1)
end
if choix_sorts_32176 == 1 then
pUnit:RegisterEvent('spell1_32176', 1, 1)
end
end

function mob32176_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32176', math.random(1500, 3000), 1)
end

function mob32176_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32176_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32176_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32176, 1, 'mob32176_Action')
RegisterUnitEvent(32176, 2, 'mob32176_Leave')
RegisterUnitEvent(32176, 3, 'mob32176_Kill')
RegisterUnitEvent(32176, 4, 'mob32176_Die')
